package com.itshizhan.itjidancideveloper.service.impl;

import com.itshizhan.itjidancideveloper.dao.PersonalWordDao;
import com.itshizhan.itjidancideveloper.models.PersonalWord;
import com.itshizhan.itjidancideveloper.service.PersonalWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonalWordServiceImpl implements PersonalWordService {
    @Autowired
    PersonalWordDao personalWordDao;

    @Override
    public PersonalWord getNote(String userId, String wordId) {
        return personalWordDao.findByUserIdAndWordId(userId,wordId);
    }
}
